import os, sys


def get_root_path():
    cur_path=sys.path[0]
    try:
       i= cur_path.index('/com/')
    except:
       i=cur_path.index('/test')
    return cur_path[0:i]
